package com.lakeworks.mapper;

import com.lakeworks.domain.status.StaPickup;

import java.util.List;

/**
 * 入厂单状态Mapper接口
 *
 * @author lake
 * @date 2023-02-23
 */
public interface StaPickupMapper {
    /**
     * 查询入厂单状态
     *
     * @param id 入厂单状态主键
     * @return 入厂单状态
     */
    StaPickup selectStaPickupById(Long id);

    /**
     * 查询入厂单状态列表
     *
     * @param staPickup 入厂单状态
     * @return 入厂单状态集合
     */
    List<StaPickup> selectStaPickupList(StaPickup staPickup);

    /**
     * 新增入厂单状态
     *
     * @param staPickup 入厂单状态
     * @return 结果
     */
    int insertStaPickup(StaPickup staPickup);

    /**
     * 修改入厂单状态
     *
     * @param staPickup 入厂单状态
     * @return 结果
     */
    int updateStaPickup(StaPickup staPickup);

    /**
     * 删除入厂单状态
     *
     * @param id 入厂单状态主键
     * @return 结果
     */
    int deleteStaPickupById(Long id);

    /**
     * 批量删除入厂单状态
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    int deleteStaPickupByIds(Long[] ids);


    int deleteStaPickupByPickupId(Long pickupId);


    Integer selectStaPickupByDate(String date);

}
